package com.liuyang.demo.number;

public class NumberUtil {
    public static boolean isNunOrZero(Long l) {
        if (l == null || l==0L) {
            return true;
        } else {
            return false;
        }
    }

    public static boolean isNunOrZero(Integer l) {
        if (l == null || l==0) {
            return true;
        } else {
            return false;
        }
    }

    public static void main(String[] args) {
        Integer i =null;
        Long l = null;
        System.out.println(isNunOrZero(i));
        System.out.println(isNunOrZero(l));
        System.out.println(isNunOrZero(0L));
        System.out.println(isNunOrZero(0));
    }
}
